#include "ZigBeeDeliverCmd.h"

ZigBeeDeliverCmd::ZigBeeDeliverCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::ZigbeeControlProtocol;
    this->m_functionCode = FunctionCode;
}


Package ZigBeeDeliverCmd::toPackage()
{
    Package package;
    package.setFunction(FunctionCode);
    return package;
}

void ZigBeeDeliverCmd::unPackage(Package package)
{
     Q_UNUSED(package);
    qDebug()<<"unpackage zigbee Deliver Cmd";
  //  qDebug()<<package.body().toHex().data();
 //   SetCmdBody(package.body());
}

void ZigBeeDeliverCmd::SetCmdBody(QByteArray Cmd)
{
    m_CmdBody=Cmd;
}

QByteArray ZigBeeDeliverCmd::getCmd()
{
    return m_CmdBody;
}
